/* 道具预约页面样式 */
.equipment-book-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.page-header h3 {
    color: var(--text-dark);
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.update-time {
    color: var(--text-gray);
    font-size: 14px;
    margin: 0;
}

/* 道具分类 */
.equipment-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: white;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 道具网格 */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.equipment-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.equipment-image {
    height: 120px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.equipment-info {
    padding: 20px;
}

.equipment-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.equipment-category {
    display: inline-block;
    background: #e9ecef;
    color: var(--text-gray);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 12px;
}

.equipment-description {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 42px;
}

.equipment-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    text-align: center;
}

.detail-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.detail-value.high {
    color: var(--success-color);
}

.detail-value.medium {
    color: var(--warning-color);
}

.detail-value.low {
    color: var(--danger-color);
}

.equipment-actions {
    display: flex;
    gap: 10px;
}

.equipment-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 13px;
}

/* 预约表单 */
.booking-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.booking-form h4 {
    color: var(--text-dark);
    font-size: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* 费用预览 */
.cost-preview {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 4px solid var(--primary-color);
}

.cost-preview h5 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 16px;
}

.cost-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.cost-item.total {
    border-top: 2px solid #dee2e6;
    margin-top: 8px;
    padding-top: 15px;
    font-weight: 600;
    font-size: 18px;
}

.cost-item .label {
    color: var(--text-gray);
}

.cost-item .value {
    color: var(--text-dark);
    font-weight: 500;
}

.cost-item.total .value {
    color: var(--primary-color);
    font-weight: 600;
}

/* 我的租赁记录 */
.my-bookings {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.my-bookings h4 {
    color: var(--text-dark);
    font-size: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.booking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.booking-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.booking-info h5 {
    color: var(--text-dark);
    font-size: 16px;
    margin-bottom: 8px;
}

.booking-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-gray);
}

.booking-requirements {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 8px;
    font-style: italic;
}

.booking-status {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.status-PENDING {
    background: #fff3cd;
    color: #856404;
}

.status-CONFIRMED {
    background: #d1ecf1;
    color: #0c5460;
}

.status-CANCELLED {
    background: #f8d7da;
    color: #721c24;
}

.status-COMPLETED {
    background: #d4edda;
    color: #155724;
}

.status-IN_USE {
    background: #cce7ff;
    color: #004085;
}

.booking-actions {
    display: flex;
    gap: 10px;
}

/* 费用说明 */
.pricing-info {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pricing-info h4 {
    color: var(--text-dark);
    font-size: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.pricing-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pricing-card h5 {
    color: var(--text-dark);
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-card li {
    padding: 8px 0;
    color: var(--text-gray);
    font-size: 14px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 15px;
}

.pricing-card li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.pricing-card li:last-child {
    border-bottom: none;
}

/* 表单动作按钮 */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.form-actions .btn {
    min-width: 120px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .equipment-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .booking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .booking-meta {
        flex-direction: column;
        gap: 5px;
    }

    .booking-actions {
        align-self: flex-end;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .equipment-actions {
        flex-direction: column;
    }

    .equipment-details {
        grid-template-columns: 1fr;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.equipment-card {
    animation: fadeInUp 0.5s ease;
}

.booking-item {
    animation: fadeInUp 0.4s ease;
}

/* 自定义滚动条 */
.bookings-list::-webkit-scrollbar {
    width: 6px;
}

.bookings-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.bookings-list::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.bookings-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 加载状态 */
.loading-state {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: var(--text-gray);
}

.loading-state .loading {
    margin-right: 10px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
}